package com.woniu.command.productCommand;

import com.woniu.command.CommandString;
import com.woniu.command.handler.ProductCommandHandler;

public class GetProjectCodeCommand implements CommandString<Integer> {
    private ProductCommandHandler handler;

    public GetProjectCodeCommand(){
        this.handler = com.woniu.util.ApplicationContextHolder.getApplicationContext()
                .getBean(ProductCommandHandler.class);
    }

    @Override
    public String execute(Integer id) {
        return handler.getProjectCode(id);
    }
}
